
public class PrintStar {
    public static void main(String[] avgs)
    {
        int[][] snow=new int[5][];
        for(int i=0;i<snow.length;i++)
            snow[i]=new int[(i+1)*2-1];
        for(int i=0;i<snow.length;i++)
        {
            for(int j=0;j<(i+1)*2-1;j++)
                snow[i][j]='*';
        }
        int n=1;
        for(int i=0;i<snow.length;i++)
        {
            for(int k=0;k<snow.length-n;k++)
                System.out.print(" ");
            for(int j=0;j<snow[i].length;j++)
            {
                System.out.print((char)snow[i][j]);
            }
            System.out.println();
           n++;
       }
       n-=2;
       for(int i=snow.length-2;i>=0;i--)
       {
           for(int k=0;k<snow.length-n;k++)
               System.out.print(" ");
           for(int j=snow[i].length-1;j>=0;j--)
           {
               System.out.print((char)snow[i][j]);
           }
           System.out.println();
          n--;
      }
    }
}
